package com.yunlongn.async.thread;

/**
 * 分片的线程
 * @author yunlongn
 * @since 20210907
 */
public abstract class ShardingRunnable implements Runnable {
    /**
     * 将每个运行的数据暂存
     * 异常情况 可以读取到
     */
    private final Object data;

    public ShardingRunnable(Object data) {
        this.data = data;
    }

    public Object getData() {
        return data;
    }

}
